package com.baizhi.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;

import java.io.Serializable;

public class CmfzGuru implements Serializable {
    @Excel(name="上师编号")
    private Integer guruId;
    @Excel(name="上师名字")
    private String guruName;
    @Excel(name="上师头像",type = 2,width = 20,height = 20,imageType = 1)
    private String guruImage;
    @Excel(name="上师法名")
    private String guruNickname;
    @Excel(name="上师状态",replace = {"冻结_1","正常_0"})
    private Integer guruStatus;

    private static final long serialVersionUID = 1L;

    public CmfzGuru() {
    }

    public CmfzGuru(Integer guruId, String guruName, String guruImage, String guruNickname, Integer guruStatus) {
        this.guruId = guruId;
        this.guruName = guruName;
        this.guruImage = guruImage;
        this.guruNickname = guruNickname;
        this.guruStatus = guruStatus;
    }

    public Integer getGuruId() {
        return guruId;
    }

    public void setGuruId(Integer guruId) {
        this.guruId = guruId;
    }

    public String getGuruName() {
        return guruName;
    }

    public void setGuruName(String guruName) {
        this.guruName = guruName == null ? null : guruName.trim();
    }

    public String getGuruImage() {
        return guruImage;
    }

    public void setGuruImage(String guruImage) {
        this.guruImage = guruImage == null ? null : guruImage.trim();
    }

    public String getGuruNickname() {
        return guruNickname;
    }

    public void setGuruNickname(String guruNickname) {
        this.guruNickname = guruNickname == null ? null : guruNickname.trim();
    }

    public Integer getGuruStatus() {
        return guruStatus;
    }

    public void setGuruStatus(Integer guruStatus) {
        this.guruStatus = guruStatus;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        CmfzGuru other = (CmfzGuru) that;
        return (this.getGuruId() == null ? other.getGuruId() == null : this.getGuruId().equals(other.getGuruId()))
            && (this.getGuruName() == null ? other.getGuruName() == null : this.getGuruName().equals(other.getGuruName()))
            && (this.getGuruImage() == null ? other.getGuruImage() == null : this.getGuruImage().equals(other.getGuruImage()))
            && (this.getGuruNickname() == null ? other.getGuruNickname() == null : this.getGuruNickname().equals(other.getGuruNickname()))
            && (this.getGuruStatus() == null ? other.getGuruStatus() == null : this.getGuruStatus().equals(other.getGuruStatus()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getGuruId() == null) ? 0 : getGuruId().hashCode());
        result = prime * result + ((getGuruName() == null) ? 0 : getGuruName().hashCode());
        result = prime * result + ((getGuruImage() == null) ? 0 : getGuruImage().hashCode());
        result = prime * result + ((getGuruNickname() == null) ? 0 : getGuruNickname().hashCode());
        result = prime * result + ((getGuruStatus() == null) ? 0 : getGuruStatus().hashCode());
        return result;
    }

    @Override
    public String toString() {
        return "CmfzGuru{" +
                "guruId=" + guruId +
                ", guruName='" + guruName + '\'' +
                ", guruImage='" + guruImage + '\'' +
                ", guruNickname='" + guruNickname + '\'' +
                ", guruStatus=" + guruStatus +
                '}';
    }
}